package com.fauks.ee.quartz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

/**
 * 定义任务类
 */
public class MyJob implements Job {

    //在任务被触发时执行
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("hello myjob：" + new Date());
    }
}
